Re-exports§
Modules§
- account
- account_
info - Account information.
- account_
utils - useful extras for Account state
- address_
lookup_ table_ account - The definition of address lookup table accounts.
- blake3
- Hashing with the blake3 hash function.
- borsh
- Utilities for the borsh serialization format.
- bpf_
loader - The latest BPF loader native program.
- bpf_
loader_ deprecated - The original and now deprecated Safecoin BPF loader.
- bpf_
loader_ upgradeable - An upgradeable BPF loader native program.
- builtins
- Safecoin builtin helper macros
- client
- Defines traits for blocking (synchronous) and non-blocking (asynchronous) communication with a Safecoin server as well a a trait that encompasses both.
- clock
- Information about the network’s clock, ticks, slots, etc.
- commitment_
config - compute_
budget - config
- The config native program.
- debug_
account_ data - Debug-formatting of account data.
- decode_
error - Converting custom error codes to enums.
- derivation_
path - deserialize_
utils - ed25519_
instruction - ed25519_
program - The ed25519 native program.
- entrypoint
- entrypoint_
deprecated - epoch_
info - epoch_
schedule - Configuration for epochs and slots.
- exit
- feature
- Methods for working with
Feature
accounts. - feature_
set - Collection of all runtime features.
- fee
- fee_
calculator - Calculation of transaction fees.
- genesis_
config - The
genesis_config
module is a library for generating the chain’s genesis config. - hard_
forks - The
hard_forks
module is used to maintain the list of slot boundaries for when a hard fork should occur. - hash
- incinerator
- A designated address for burning lamports.
- inflation
- configuration for network inflation
- instruction
- Types for directing the execution of Safecoin programs.
- keccak
- Hashing with the keccak (SHA-3) hash function.
- keyed_
account Deprecated - lamports
- Defines the
LamportsError
type. - loader_
instruction - Instructions for the non-upgradable BPF loader.
- loader_
upgradeable_ instruction - Instructions for the upgradable BPF loader.
- log
- Logging utilities for Rust-based Safecoin programs.
- message
- Sequences of
Instruction
s executed within a single transaction. - native_
loader - native_
token - Definitions for the native SAFE token and its fractional lamports.
- nonce
- Durable transaction nonces.
- nonce_
account - packet
- poh_
config - precompiles
- Safecoin precompiled programs
- program
- Cross-program invocation.
- program_
error - The
ProgramError
type and related definitions. - program_
memory - Basic low-level memory operations.
- program_
option - A C representation of Rust’s
Option
, used across the FFI boundary for Safecoin program interfaces. - program_
pack - The
Pack
serialization trait. - program_
stubs - Implementations of syscalls used when
safecoin-program
is built for non-BPF targets. - program_
utils - pubkey
- quic
- recent_
blockhashes_ account - rent
- Configuration for network rent.
- reward_
type - rpc_
port - sanitize
- A trait for sanitizing values and members of over the wire messages.
- sdk_ids
- A vector of Safecoin SDK IDs
- secp256k1_
instruction - Instructions for the secp256k1 native program.
- secp256k1_
program - The secp256k1 native program.
- secp256k1_
recover - Public key recovery from secp256k1 ECDSA signatures.
- serde_
varint - serialize_
utils - Helpers for reading and writing bytes.
- short_
vec - Compact serde-encoding of vectors with small length.
- shred_
version - signature
- The
signature
module provides functionality for public, and private keys. - signer
- slot_
hashes - A type to hold data for the
SlotHashes
sysvar. - slot_
history - A type to hold data for the
SlotHistory
sysvar. - stake
- The stake native program.
- stake_
history - A type to hold data for the
StakeHistory
sysvar. - syscalls
- system_
instruction - Instructions and constructors for the system program.
- system_
program - The system native program.
- system_
transaction - The
system_transaction
module provides functionality for creating system transactions. - sysvar
- Access to special accounts with dynamically-updated data.
- timing
- The
timing
module provides std::time utility functions. - transaction
- Atomically-committed sequences of instructions.
- transaction_
context - Successors of instruction_context_context::StackFrame, KeyedAccount and AccountInfo
- transport
- vote
- The vote native program.
Macros§
- copy_
field - custom_
heap_ default - Define the default global allocator.
- custom_
panic_ default - Define the default global panic handler.
- declare_
builtin - Convenience macro to declare a builtin
- declare_
builtin_ name - declare_
deprecated_ id - Same as
declare_id
except report that this id has been deprecated - declare_
deprecated_ sysvar_ id - Same as
declare_sysvar_id
except that it reports that this ID has been deprecated. - declare_
id - Convenience macro to declare a static public key and functions to interact with it
- declare_
sysvar_ id - Declares an ID that implements
SysvarId
. - entrypoint
Deprecated - entrypoint_
deprecated Deprecated - impl_
sysvar_ get - Implements the
Sysvar::get
method for both BPF and host targets. - info
Deprecated - Print a message to the log.
- msg
- Print a message to the log.
- program_
stubs Deprecated - pubkey
- Convenience macro to define a static public key
- pubkeys
- respan
- A proc-macro which respans the tokens in its first argument (a
Path
) to be resolved at the tokens of its second argument. For internal use only. - saturating_
add_ assign - Convenience macro for
AddAssign
with saturating arithmetic. Replace bystd::num::Saturating
once stable - unchecked_
div_ by_ const - Convenience macro for doing integer division where the operation’s safety can be checked at compile-time.
Functions§
Attribute Macros§
- wasm_
bindgen - A list of all the attributes can be found here: https://rustwasm.github.io/docs/wasm-bindgen/reference/attributes/index.html